package io.gitee.dqcer.mcdull.uac.provider.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.gitee.dqcer.mcdull.uac.provider.common.annotation.Excel;
import io.gitee.dqcer.mcdull.uac.provider.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单管理对象 car_order
 * 
 * @author ruoyi
 * @date 2023-12-10
 */
public class CarOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id，主键，自增，整型 */
    private Long orderId;

    /** 用户id，外键，引用用户表（user）的user_id */
    @Excel(name = "用户id，外键，引用用户表", readConverterExp = "u=ser")
    private Long userId;

    /** 订单服务类型，例如：保养、维修、美容等 */
    @Excel(name = "订单服务类型，例如：保养、维修、美容等")
    private String serviceType;

    /** 订单状态，例如：待支付、已完成、已取消等 */
    @Excel(name = "订单状态，例如：待支付、已完成、已取消等")
    private String orderStatus;

    /** 订单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 订单完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date completedAt;

    /** 订单支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paidAt;

    /** 订单取消时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单取消时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancelledAt;

    /** 订单总金额，十进制类型，例如：100.00 */
    @Excel(name = "订单总金额，十进制类型，例如：100.00")
    private BigDecimal totalAmount;

    /** 支付方式，例如：在线支付、货到付款等 */
    @Excel(name = "支付方式，例如：在线支付、货到付款等")
    private String paymentMethod;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 记录最后一次更新的时间 */
    private Date updatedAt;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setServiceType(String serviceType) 
    {
        this.serviceType = serviceType;
    }

    public String getServiceType() 
    {
        return serviceType;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setCompletedAt(Date completedAt) 
    {
        this.completedAt = completedAt;
    }

    public Date getCompletedAt() 
    {
        return completedAt;
    }
    public void setPaidAt(Date paidAt) 
    {
        this.paidAt = paidAt;
    }

    public Date getPaidAt() 
    {
        return paidAt;
    }
    public void setCancelledAt(Date cancelledAt) 
    {
        this.cancelledAt = cancelledAt;
    }

    public Date getCancelledAt() 
    {
        return cancelledAt;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }
    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("serviceType", getServiceType())
            .append("orderStatus", getOrderStatus())
            .append("createdAt", getCreatedAt())
            .append("completedAt", getCompletedAt())
            .append("paidAt", getPaidAt())
            .append("cancelledAt", getCancelledAt())
            .append("totalAmount", getTotalAmount())
            .append("paymentMethod", getPaymentMethod())
            .append("notes", getNotes())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
